<html>
<head>
    <link rel="shortcut icon" href="favicon.ico" />
    <meta charset="utf-8">
    <title>确认订单-Sugou 商城</title>
    <meta http-equiv="keywords" content="Sugou 商城">
    <meta name="description" content="Sugou 商城">
    <script src="__JS__/jquery-1.10.2.min.js"></script>
    <script src="__JS__/global.js"></script>
    <link rel="stylesheet" type="text/css" href="__CSS__/style.css"/>
    <link rel="stylesheet" type="text/css" href="__CSS__/goods_jiesuan.css"/>
</head>
<body>
<div class="site-topbar">
    <div class="layout">
        <div class="t1-l">
            <ul class="t1-l-ul">
                <li class="t1font"><a href="{:url('index/index/index')}">Sugoushop</a></li>
                <li class="t1img">&nbsp;</li>
            </ul>
        </div>
        <div class="t1-r">
            {if condition="session('islogin')"}
            <ul class="t1-r-ul">
                <li class="t1font"> <a href="#" class="logon userinfo">{$Think.session.username}</a></li>
                <li class="t1img"><a href="#">安全退出</a></li>
                <li class="t1img">&nbsp;</li>
                <li class="t1img">&nbsp;</li>
                <li class="t1font"><a href="#">我的订单</a></li>
            </ul>
            {else /}
            <ul class="t1-r-ul">
                <li class="t1font"><a href="{:url('index/user/login')}">登录</a></li>
                <li class="t1img">&nbsp;</li>
            </ul>
            {/if}

        </div>
    </div>
</div>
<div class="order-header">
    <div class="layout after">
        <div class="fl">
            <div class="logo wi345">
                <a href="{:url('index/index/index')}"><img alt="" src="__ROOT__/img/logofinal3.png"></a>
            </div>
        </div>
        <div class="fr">
            <div class="pa-to-36 progress-area">
                <div class="progress-area-wd" style="display: none;">我的购物车</div>
                <div class="progress-area-tx" style="display: block;">填写核对订单信息</div>
                <div class="progress-area-cg" style="display: none;">成功提交订单</div>
            </div>
        </div>
    </div>
</div>
<style>
    /*.address tr td { border:#F00 solid 1px; }*/
    /*没选中的 收货地址*/
    .order-address-list table{background-color:inherit; border: 0px solid #CCC;}
    .order-address-list .default{visibility:hidden;}
    /*选中的 收货地址*/
    .address_current{ background-color:#fffde6; border: 1px solid #fadccf;}
    .address_current .default{visibility:visible;}
</style>
<form name="cart2_form" id="cart2_form" method="post" action="{:url('index/index/order_add')}">
    <div class="layout be-table fo-fa ma-bo-45">
        <div class="con-info">
            <div class="con-y-info ma-bo-35">
                <h3 style="margin-top: 30px;">收货人信息</h3>
                <div id="ajax_address"> <!--默认选中的地址-->
                    <div class="order-address-list address_current">
                        <table width="100%" class="address" border="1" cellspacing="0" cellpadding="0">
                            <tbody>
                            <tr>
                                <td width="60" class="default"><i></i></td>
                                <td width="60" class="co-red default">寄送至</td>
                                <td width="60" class="address_id"><input name="address_id"  type="radio" checked="checked" value="814" data-district-id="28604" data-city-id="28558" data-province-id="28240"></td>
                                <td width="160" class="consignee">收货人:<b>张谷泉</b></td>
                                <input type="hidden" name="consignee" id="consignee" value="张谷泉" />
                                <td width="460" class="address2"><span>地址:广东省 深圳市 龙岗区 南湾街道 五和大道五和商业广场2017</span></td>
                                <input type="hidden" name="address" id="address" value="广东省 深圳市 龙岗区 南湾街道 五和大道五和商业广场2017" />
                                <td width="200" class="mobile"><span>电话：13512345678</span></td>
                                <input type="hidden" name="mobile" id="mobile" value="13512345678" />
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div id="ajax_pickup">
                </div>
            </div>
            <div class="con-y-info ma-bo-35 con-h">
                <h3>物流信息<em>(选择相应的物流配送，订单出库后不能修改)</em></h3>
                <div class="order-invoice-list">
                    <ul>
                        <li>
                            <div class="invoice-main">
                                <input name="shipping_code" id="shunfeng"  type="radio" value="shunfeng" checked="checked">
                                <input type="hidden" name="shipping_code" id="shipping_code" value="shunfeng" />
                                <label for="gr">顺丰物流</label>
                            </div>
                        </li>
                    </ul>
                </div>
                <p class="tips"><em>注意：</em>如果商品由第三方卖家销售，发票内容由其卖家决定，发票由卖家开具并寄出</p>
            </div>
        </div>
        <div class="sc-area">
            <div class="dt-order-area">
                <div class="order-pro-list">
                    <div class="order-pro-list">
                        <div class="yxspy">
                            <div class="hv">您购买的以下商品</div>
                            <div class="bv">
                                <table border="0" cellspacing="0" cellpadding="0">
                                    <thead>
                                    <tr>
                                        <th class="tr-pro">商品</th>
                                        <th class="tr-price">单价（元）</th>
                                        <th class="tr-quantity">数量</th>
                                        <th class="tr-subtotal">小计（元）</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                        </div>
                        <div class="leiliste">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tbody>
                                {foreach name='cart' item='vo'}

                                <input type="hidden" name="userid" id="" value="{$Think.session.userid}" />
                                <input type="hidden" name="goods_name" id="goods_name" value="{$vo.goods_name}" />
                                <input type="hidden" name="goods_price" id="goods_price" value="{$vo.market_price*$vo.goods_num}" />
                                <input type="hidden" name="market_price" id="market_price" value="{$vo.market_price}" />
                                <input type="hidden" name="goods_num" id="goods_num" value="{$vo.goods_num}" />
                                <tr>
                                    <td class="tr-pro">
                                        <ul class="pro-area-2">
                                            <li>
                                                <a title="{$vo.goods_name}" href="{:url('index/index/details',['goods_id'=>$vo.id])}" target="_blank" seed="item-name">{$vo.goods_name}</a>
                                            </li>
                                        </ul>
                                    </td>
                                    <!-- 预付订金商品的价格为空 -->
                                    <td class="tr-price te-al">¥{$vo.market_price}</td>
                                    <td class="tr-quantity te-al">{$vo.goods_num}</td>
                                    <td class="tr-subtotal te-al" rowspan="1">
                                        <p><b>￥{$vo.market_price*$vo.goods_num}</b></p>
                                    </td>
                                </tr>
                                {/foreach}
    <!--}//end !isset-->
<!--else{-->
	<!--echo "<script>alert('请登录查看订单');</script>";-->
                                <!--echo "<script>location.href='login.php';</script>";-->
                                <!--}-->
                                <!--?>-->
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="order-pro-total">
                    <div class="fr wcnhy">
                        <div class="fzoubddv">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tbody>
                                <tr>
                                    <td class="tal">商品总金额：</td>
                                    <td class="tar">&nbsp;¥&nbsp;
                                        <em id="order-cost-area">{$vo.market_price*$vo.goods_num}</em>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <p class="yifje-order">
                            	<span class="p-subtotal-price"> 应付金额：
                                    <b class="total">¥</b>
                                    <b class="total" id="payables">{$vo.market_price*$vo.goods_num}</b>
                                </span>
                            </p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="order-action-area te-al-ri">
                <div class="woypdbe sc-acti-list pa-to-20">
                    <button name="ok" type="submit" style="background-color: red;color: white;height: 40px;width: 80px;"><span>提交订单</span></button>
                </div>
            </div>
        </div>
    </div>
</form>
<!--------footer-开始-------------->
{include file='/footer'}
<!--------footer-结束-------------->
</body>
</html>